package com.googlecode.beanfiles.translators;

import java.util.List;
import java.util.Map;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;

public abstract class NestedPropertyTranslator extends IndexedRangeTranslator {

    protected static Log log() {
        return LogFactory.getLog(NestedPropertyTranslator.class);
    }
    
    protected Map<String, List<Integer>> propertyIndexesMap;
    protected String parentPropertyName;

    public NestedPropertyTranslator(String parentPropertyName, Map<String, List<Integer>> propertyIndexesMap) {
        this.parentPropertyName = parentPropertyName;
        this.propertyIndexesMap = propertyIndexesMap;
    }
    
    public void setPropertyIndexesMap(Map<String, List<Integer>> propertyIndexesMap) {
        this.propertyIndexesMap = propertyIndexesMap;
    }
    
}
